package cn.com.open.ms.ecgpaasdatarest.mapper;

import cn.com.open.ms.ecgpaasdatarest.databasemodel.BusinessDataSource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Description TODO
 * @Author 奶茶
 * Created by on 2018/11/30 14:56.
 */
@Mapper
public interface BusinessDataSourceMapper {

    @Select("SELECT db_config FROM datasource_business WHERE app_key = #{appKey} AND business_name = #{businessName} AND deleted = #{deleteStatus} LIMIT 1")
    String getDataSourceInfoByAppKeyAndBusinessName(@Param(value = "appKey")String appKey,@Param(value = "businessName")String businessName,@Param(value = "deleteStatus")Integer deleteStatus);

}
